home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 076-100 / disk_096 / animplayer / userrequest.c < prev    next >
C/C++ Source or Header  |  1992-05-06  |  1KB  |  68 lines

  1. /************************************************************
  2.  *
  3.  *     NAME
  4.  *        UserRequest -- TRUE/FALSE continuance
  5.  *
  6.  *     DESCRIPTION
  7.  *        Often, a situation occurs where the user should
  8.  *        be notified of some information.  This function
  9.  *        is passed a statement like, "NO DISKS PRESENT", 
  10.  *        and returns TRUE or FALSE as picked by the user.
  11.  *
  12.  *        copyright (c) 1987 Martin D. Hash
  13.  *
  14.  *     LAST EDITED
  15.  *        Martin Hash              30 Nov 1986
  16.  *
  17.  *     EDIT HISTORY
  18.  *        30 Nov 1986  MH  Created.
  19.  *
  20.  **********************************************************/
  21.  
  22. #include <exec/types.h>
  23. #include <intuition/intuition.h>
  24.  
  25. /* EXTERNAL VARIABLES */
  26.  
  27. extern struct Window *window;
  28.  
  29. /* LOCAL VARIABLES */
  30.  
  31. #define COLOR0        0
  32. #define COLOR1        1
  33. #define COLOR2        2
  34. #define COLOR3        3
  35.  
  36. /* LOCAL VARIABLES */
  37.  
  38. static struct IntuiText autotext = {
  39.    COLOR3, COLOR1, JAM2,
  40.    5, 5, NULL,
  41.    NULL,
  42.    NULL
  43. };
  44.  
  45. static struct IntuiText true = {
  46.    COLOR0, COLOR1, JAM2,
  47.    7, 3, NULL,
  48.    "TRUE",
  49.    NULL
  50. };
  51.  
  52. static struct IntuiText false = {
  53.    COLOR3, COLOR1, JAM2,
  54.    7, 3, NULL,
  55.    "FALSE",
  56.    NULL
  57. };
  58.  
  59. /* FUNCTION */
  60.  
  61. BOOL UserRequest( text )
  62.  
  63. char *text;
  64. {
  65.    autotext.IText = text;
  66.    return (BOOL)AutoRequest( window, &autotext, &true, &false, 0, 0, 319, 60 );
  67. }    
  68.